package clientone.clientone.controller;

import jdk.nashorn.internal.objects.annotations.Getter;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RequestMapping("/map")
@RestController
public class UserController {


    @GetMapping("/who")
    public String who() {
        return "my name is liQQ";
    }

    @GetMapping("/info")
    public String orderInfo() {
        return "test info date : " + new Date().toString();
    }
}
